﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Linq;
namespace QuanLyKhachSan
{
    public partial class XtraForm1 : DevExpress.XtraEditors.XtraForm
    {
        DataClassesKhachSanDataContext db = new DataClassesKhachSanDataContext(SystemInfo.pub_ConnString);
        public XtraForm1()
        {
            InitializeComponent();
        }

        private void XtraForm1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F5)
            {
                MessageBox.Show("abc");
            }
        }

        private void comboBoxEdit1_SelectedValueChanged(object sender, EventArgs e)
        {
              
            
        }

        private void XtraForm1_Load(object sender, EventArgs e)
        {
            var khach = db.KHACH_HANGs.ToList ();
            //comboBoxEdit1 .Properties.dataS
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(comboBoxEdit1.EditValue.ToString());
        }

      
    }
}